package com.xm.shop.pojo.qo;

import java.math.BigDecimal;

/**
 * @author ludi
 * @date:2020/9/1 9:27
 * @description:添加订单参数
 */
public class OrderAddQO {
    private Integer userId;
    private Integer addressId;
    private BigDecimal integral;
    private BigDecimal totalPrice;
    //定义orderId接受查询数据库返回的值
    private Integer orderId;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }



    public OrderAddQO() {
    }

    public OrderAddQO(Integer userId, Integer addressId, BigDecimal integral, BigDecimal totalPrice) {
        this.userId = userId;
        this.addressId = addressId;
        this.integral = integral;
        this.totalPrice = totalPrice;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public BigDecimal getIntegral() {
        return integral;
    }

    public void setIntegral(BigDecimal integral) {
        this.integral = integral;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "OrderAddQO{" +
                "userId=" + userId +
                ", addressId=" + addressId +
                ", integral=" + integral +
                ", totalPrice=" + totalPrice +
                '}';
    }
}
